/*
 * 
 * 
 * 
 */
package com.hboxs.asl.dao.impl;

import com.hboxs.asl.dao.OrderLogDao;
import com.hboxs.asl.entity.Order;
import com.hboxs.asl.entity.OrderLog;
import org.springframework.stereotype.Repository;

/**
 * Dao - 订单日志
 */
@Repository("orderLogDaoImpl")
public class OrderLogDaoImpl extends BaseDaoImpl<OrderLog, Long> implements OrderLogDao {


    @Override
    public void generateOrderLog(OrderLog.Type type, String operator, Order order) {
        persist(new OrderLog(type, operator, null, order));
    }
}